package org.smart4j.framework;

import org.smart4j.framework.helper.*;
import org.smart4j.framework.utils.ClassUtils;

import java.util.Map;

/**
 * 加载相应的Helper类
 * @Description:
 * @Author: Administrator
 * @Date: 2017/8/15 0015 下午 9:40
 */
public class HelperLoader {

    public static void init() {
        Class<?>[] classList ={
                ClassHelper.class,
                BeanHelper.class,
                AopHelper.class,
                IocHepler.class,
                ControllerHelper.class,
                DataBaseHelper.class
        };
        for (Class<?> clazz : classList) {
            ClassUtils.loadClass(clazz.getName());//ClassLoader就是用来动态加载class文件到内存当中用的,从而只有class文件被载入到了内存之后，才能被其它class所引用
        }
    }
}
